// 关于我
const aboutModel = require('./schema/aboutSchema') // 引入模型

// 查询
module.exports.findAboutDao = async function () {
  const result = await aboutModel.findOne()
  return result
}

// 修改
module.exports.updateAboutDao = async function (newUrl) {
  const data = await aboutModel.findOne()
  data.url = newUrl
  await data.save()
  return data
}
